package com.joney.backstage.mapper;

import com.joney.backstage.entity.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author joney123
 * @since 2018-02-07
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectRolesByUserId(Integer userId);

    List<Role> selectRolesByResId(Integer resId);

}
